// 配置路由
import { createRouter,createWebHistory} from 'vue-router'
import Layout from '../views/Layout/Layout.vue'
const routes = [
  {
    path: '/',
    name: 'Layout',
    component: Layout,
    children: [
      {
        path: '/',
        name: 'index',
        component: () => import('../views/index/index.vue'),
        meta:{title:'首页'}
      },
    {     
        path: '/dynamicList',
        name: 'DynamicList',
        component: () => import('../views/DynamicList/DynamicList.vue'),
        meta:{title:'动态列表'}   
    },
    {
      path: '/dynamic-category',
      name: 'dynamic-category',
      component: () => import('../views/DynamicCategory/DynamicCategory.vue'),
      meta:{title:'动态分类'}
    },
    {
      path: '/about-school',
      name: 'about-school',
      component: () => import('../views/AboutSchool/AboutSchool.vue'),
      meta:{title:'关于学校'}
    },
    {
      path: '/intended-students',
      name: 'intended-students',
      component: () => import('../views/intended-students/intended-students.vue'),
      meta:{title:'意向学员删除记录'}
    },
    {
      path: '/intended-addstudents',
      name: 'intended-addstudents',
      component: () => import('../views/intended-addstudents/intended-addstudents.vue'),
      meta:{title:'意向学员添加'}
    },  {
      path: '/audition-list',
      name: '/audition-list',
      component: () => import('../views/audition-list/audition-list.vue'),
      meta:{title:'试听列表'}
    },  {
      path: '/intended-studentsClues',
      name: 'intended-studentsClues',
      component: () => import('../views/intended-studentClues/intended-studentClues.vue'),
      meta:{title:'意向学员详情-线索记录'}
    },
    {
      path: '/intended-studentAuditions',
      name: 'intended-studentAuditions',
      component: () => import('../views/intended-studentAuditions/intended-studentAuditions.vue'),
      meta:{title:'意向学员详情-试听记录'}
    },{
      path: '/student-clue-list',
      name: 'student-clue-list',
      component: () => import('../views/student-clue-list/student-clue-list.vue'),
      meta:{title:'学员线索列表'}
    },
    {
      path:'intended-studentsMain',
      name: 'intended-studentsMain',
      component: () => import('../views/intended-studentsMain/intended-studentsMain.vue'),
      meta:{title:'意向学员'}
    }

    ]
  }]
const router = createRouter({
  history: createWebHistory(),
  routes
})
export default router
